import { Breadcrumb } from '@douyinfe/semi-ui';
import { IconHome, IconArticle } from '@douyinfe/semi-icons';
import React from 'react';

const TemplateBreadcrumb = () => {
  return (
    <Breadcrumb
      routes={[
        ...location.pathname.split('/').map((path, index) =>
          index == 0
            ? {
                path: '/',
                href: '/',
                name: 'home',
                // icon: <IconHome size='small' />,
              }
            : path
        ),
      ]}
    />
  );
};

export default TemplateBreadcrumb;